// by Xeno
private ["_vehicle"];
#include "x_setup.sqf"
#include "x_macros.sqf"

#define __Poss _poss = x_sm_pos select 0;
#define __PossAndOther _poss = x_sm_pos select 0;_pos_other = x_sm_pos select 1;

x_sm_pos = [[1401.8008,7148.0918,0], [1395.6261,7117.9014,0]]; // index: 15,   Transformer station in Petrovka
x_sm_type = "normal"; // "convoy"

#ifdef __SMMISSIONS_MARKER__
if (true) exitWith {};
#endif

if (X_Client) then {
	d_current_mission_text = "There is a transformer station in Saria. The enemy uses it to for some experiments in a laboratory in Hazena. Simple task, destroy it.";
	d_current_mission_resolved_text = "Good job. The transformer station is down.";
};

if (isServer) then {
	__PossAndOther
	_vehicle = "Land_trafostanica_velka" createvehicle (_poss);
	#ifndef __TT__
	[_vehicle] execFSM "fsms\XCheckSMHardTarget.fsm";
	#else
	[_vehicle] execFSM "fsms\XCheckSMHardTargetTT.fsm";
	#endif
	sleep 2.22;
	["shilka", 1, "bmp", 1, "tank", 0, _pos_other,1,110,true] spawn XCreateArmor;
	sleep 2.123;
	["specops", 2, "basic", 3, _poss,110,true] spawn XCreateInf;
	__AddToExtraVec(_vehicle)
};

if (true) exitWith {};